package com.bdqn.petmalldemo.bo;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Author:彭俊
 * @description:重置密码安全问题条件实体类
 * @date:2020/2/192155
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel
public class PasswordQuestionBo implements Serializable {
    private static final long serialVersionUID = 2275601261864476926L;

    @ApiModelProperty(value ="用户名",required = true)
    private String username;
    @ApiModelProperty(value ="邮箱",required = true)
    private  String email;
    @ApiModelProperty(value ="安全问题",required = false)
    private String question;
    @ApiModelProperty(value ="答案",required = false)
    private String answer;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
